package com.cn.service;

import com.cn.mapper.AccountMapper;
import com.cn.tcc.AccountTCCAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class AccountServiceImpl implements AccountService {
    /*@Autowired
    private AccountMapper accountMapper;*/
    @Autowired
    private AccountTCCAction accountTCCAction;

    @Override
    public void decrease(Long userId, BigDecimal money) {
        accountTCCAction.prepare(null, userId, money);

    }
}
